<template>
	<view class="nodata">
		<image class="noDataImg" src="@/static/images/com/noDataImg.png" mode="aspectFit"></image>
		<text class="nodataTxt" :style="'color:'+color">{{title}}</text>
		<!-- <view class="nodataTxt">{{title}}</view> -->
	</view>
</template>

<script>
	export default {
		name: "nodata",
		props:{
			title:{
				default:'暂无数据哦~',
				type: String
			},
			color:{
				default:'#aaaaaa',
				type: String
			}
		},
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.nodata {
		padding: 60rpx 0 0 0;
		/* #ifndef APP-PLUS-NVUE */
		display: flex;
		/* #endif */
		flex-direction: column;
		align-items: center;
		.noDataImg{
			width: 200rpx;
			height: 200rpx;
		}
		.nodataTxt{
			font-size: 26rpx;
			font-weight: 400;
			margin: 26rpx 0 0 0;
		}
	}
</style>
